<?php
abstract class ArmyVisitor{
	abstract function visit( $node);

	function visitArcher(Archer $node){
		$this->visit($node);
	}

	function visitCavalry(Cavalry $node){
		$this->visit($node);
	}

	function visitLaserCanonUnit(LaserCanonUnit $node){
		$this->visit($node);
	}

	function visitTroopCarrier(TroopCarrier $node){
		$this->visit($node);
	}

	function visitArmyPlus(ArmyPlus $node){
		$this->visit($node);
	}
}